package com.pan.common.design.pattern.behavioral.command;

/**
 * @author by panstark
 * @description
 * @notice
 * @date 2020/12/8
 */
public class PauseCourseVideoCommand  implements Command  {


    private CourseVideo courseVideo;

    public PauseCourseVideoCommand(CourseVideo courseVideo) {
        this.courseVideo = courseVideo;
    }

    @Override
    public void execute() {
        courseVideo.pause();
    }

}
